cmake_minimum_required (VERSION 2.6)
project (shortest-paths)

set (SRCS "graph.cpp" "shortest_paths.cpp")
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modules")

include_directories ("include")

find_package (Boost COMPONENTS thread REQUIRED)
include_directories (${Boost_INCLUDE_DIRS})
set (LIBS ${Boost_LIBRARIES})

find_package (Pqxx REQUIRED)
include_directories (${Pqxx_INCLUDE_DIRS})
set (LIBS ${LIBS} ${Pqxx_LIBRARIES})

find_package (FCGIPP REQUIRED)
include_directories (${FCGIPP_INCLUDE_DIRS})
set (LIBS ${LIBS} ${FCGIPP_LIBRARIES})

add_executable(shortest-paths ${SRCS})
target_link_libraries (shortest-paths ${LIBS})

add_executable(bucket-test bucket_test.cpp graph.cpp)
target_link_libraries (bucket-test ${LIBS})